public class Main {
	public static void main(String[] args){
		double price,weight,s,freight,discount;
		int i;
		price=20;
		weight=20;
		s=6;
		switch((int)s/250)
		{
			case 0:discount=0;
			break;
			case 1:discount=0.02;
			break;
			case 2:discount=0.05;
			break;
			case 3:discount=0.08;
			break;
			case 4:discount=0.1;
			break;
			default:discount=0.15;
		}
		freight=price*weight*s*(1-discount);
		System.out.println("总运费："+freight);
	}
}